<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>..
		<!-- <title>菜单查询页</title> -->
				<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="format-detection" content="telephone=no" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0,  maximum-scale=1.0" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style" />
		<link rel="stylesheet" type="text/css" href="${ctxStatic}/shopcartstatic/css/public.css" />

</head>
<body id="body">
	<header>
	<div id="form1" style="display:none;"></div>
		<div
			style="position: fixed; z-index:999; top: 0; width: 100%; height: 80px;"class="clearfix">

			<div
				style="width: 100%; height: 50%; float: left; background: #eb4f38;">
				<a href="Javascript:history.go(-1)" class="new-a-back"><span>返回</span></a>
				<div
					style="width: 60%; height: 80%; border-radius: 10px; float: left; margin-left: 15%; margin-top: 1%; background: #FFFFFF;">
					<%--<a onclick="getSearch()">--%><img alt="" src="${ctxStatic}/shopcartstatic/images/seek.png" onclick="getSearch()" style="display: inline-block;  width: 2em; height: 2em; float: left; margin-top: 2%;"><%--</a>--%>
					<form action="menupagesearch" id="searchform">
						<input type="hidden" id="school" name="school" value="${school }" /> <input
							type="hidden" id="id" name="id" value="${id }" /> <input type="hidden"
							name="screen" id="screen" /> <input id="search" name="search" placeholder="搜索商品"
							style="width: 80%; height: 100%; border-radius: 10px; float: right; border: none;"
							type="text" />
					</form>
				</div>
	
			</div>

		</div>

	</header>
	<div style="width: 100%; height: 70px;"></div>
	<div style="width: 100%; border-top: 7px solid #e5e5e5;">
		<!-- 内容 -->
			<div class="tuan_div">
					<div class="tuan_div1">
						<c:forEach items="${productlist}" var="p">
						<a href="easyLifedetails?productid=${p.id} ">
							<div class="tuan_div2">
								<img src="${p.imgList[0]}">
							</div>
						</a>
							<div class="tuan_div3">
								<a href="easyLifedetails?productid=${p.id} ">
								<span class="tuan_div3_sp">${p.name}</span>
								<span class="tuan_div3_sp1">
								<img alt="" src="${ctxStatic}/shopcartstatic/images/location.png">
								距离：100km</span>
								</a>
								<span class="tuan_div3_sp2">
									${p.keyword}
									<img alt="" src="${ctxStatic}/shopcartstatic/images/collectionselect.png">
								</span>
								<a href="easyLifedetails?productid=${p.id} ">
								<span class="tuan_div3_sp3" >|</span>&nbsp;店铺：${p.sellshop} </span>
								</a>
							</div>

						</c:forEach>

						<div style="width:100%;height:10px;float:left;"></div>
					</div>

					<div class="h_div1"></div>

				</div>
	</div>
	<div style="height: 10%; width: 100%; float: left;"></div>
		<script type="text/javascript" src="${ctxStatic}/shopcartstatic/js/public.js"></script>
		<script src="${ctxStatic}/shopcartstatic/js/jquery-1.6.2.min.js "></script>

    <script type="text/javascript">
        function getSearch() {
            var key=document.getElementById('search').value;
            window.location.href="menupagesearch?search="+key;
        }
    </script>

</body>
</html>
